/*
============================================================================
 Name        : BlockSetNetWork.h
 Author      : 
 Version     :
 Copyright   : 
 Description : CBlockSetNetWork declaration
============================================================================
*/

#ifndef BlockSetNetWork_H
#define BlockSetNetWork_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include "Block.h"
#include "Control.h"
// CLASS DECLARATION

/**
*  CBlockSetNetWork
* 
*/
class CBlockSetNetWork : public CBlock
{
public:
	~CBlockSetNetWork();

	static CBlockSetNetWork* NewL(CBaseBlock* bsBack);

	static CBlockSetNetWork* NewLC(CBaseBlock* bsBack);

private:
	CBlockSetNetWork(CBaseBlock* bsBack);

	void ConstructL();

public:
	void OnDraw(CFbsBitGc& g) const;

	void OnKeyEvent(const TInt& keyCode);

	void SizeChanged();
	
	void OnMouseUp(const TPoint& aPt);
	
	void OnInput(const TDesC8& strInput);

protected:
	void AddTabs();

	void BeforeDraw(CFbsBitGc& g) const;

public: // from MTabbarObserver
	void HandleTabbarCommand(TInt aCommand);

private:
	TInt m_nCurrent;
	
	CSingleLineTextInput* m_inputfresh;
	CSingleLineTextInput* m_inputresend;
	CSingleLineTextInput* m_inputresendtimes;
	CControl* m_Ctrls[3];
};

#endif // BlockSetNetWork_H
